package com.fastCms.business.frame.service;

import com.fastCms.business.frame.pojo.entity.CloudUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 平台系统用户表 服务类
 * </p>
 *
 * @author liusq
 * @since 2019-05-26
 */
public interface CloudUserService extends IService<CloudUser> {

    public Boolean isCanChangeNewPhone(String userId, String phone);

    CloudUser findById(String id);

    CloudUser findByPhone(String phone, String platform);

    CloudUser findByUsername(String username, String platform);

    CloudUser findByPhoneAndOrganizeCode(String phone, String organizeCode);

    CloudUser findByPlatformAdmin(String organizeCode, String platform);

    Boolean updateUserStatus(String organizeCode, Integer status);


}
